package com.xyb.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class UserInfo {
    private String token;
    private InnerUserInfo userInfo;

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    @Builder
    public static class InnerUserInfo{
        private long userId;            //用户id
        private String userName;        //用户名
        private String userNickName;    //用户昵称
        private String iphoneNo;        //手机号
        private String headPortraitUrl; //头像url
        private Integer status;         //状态 1 使用中,0 冻结,-1 删除
        private List<SysRole> roleList; //角色列表
    }
}
